package com.lixinyue.exer;

public class OverloadExer {
    public static void main(String[] args) {
        Demo d1 = new Demo();
        d1.mOL(2);
        d1.mOL(2,3);
        d1.mOL("xcvbn");
    }



}
class  Demo{
    public void  mOL(int x)
    {
        System.out.println(x*x);
    }
    public void mOL(int x,int y)
    {
        System.out.println(x*y);
    }
    public void  mOL(String s)
    {
        System.out.println(s);
    }
}
class Demo02{
    public int max(int i,int j){
       return  (i>j)? i:j;
    }
}